package com.hy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hy.entity.dto.TaskDetailDTO;
import com.hy.entity.pojo.HyCheckDetail;
import com.hy.entity.vo.HyCheckDetailVO;
import com.hy.entity.vo.PlaceIDVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HyCheckDetailMapper extends BaseMapper<HyCheckDetail> {


    List<HyCheckDetailVO> getDetailByTaskDetailDto(@Param("page") Page page,@Param("dto") TaskDetailDTO taskDetailDTO);

    List<PlaceIDVO> selectTreeByCheckTaskId(Integer checkTaskId);

    Integer getPlaceOverCount(@Param("taskId") Integer checkTaskId, @Param("placeId") Integer placeId);

    HyCheckDetail selectByUnitAndRfid(@Param("unitId") Integer unitId, @Param("rfid") Integer propertyRfid,@Param("taskId")Integer taskId);
}
